/*
 * copyright 2010
 */
package cc.nuboat.easyjsf.managedbean;

import cc.nuboat.easyjsf.view.UserView;
import java.util.LinkedList;
import java.util.List;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author nuboat
 */
@ManagedBean
public class DataTableManagedBean {
    private List<UserView> userViews =  new LinkedList<UserView>();
    
    public DataTableManagedBean() {
        UserView userView = null;

        userView = new UserView();
        userView.setName("Peerapat");
        userView.setUsername("nuboat");
        userView.setGroup("petdo");
        userViews.add(userView);

        userView = new UserView();
        userView.setName("Donald");
        userView.setUsername("donald");
        userView.setGroup("cartoon");
        userViews.add(userView);

        userView = new UserView();
        userView.setName("Mickey");
        userView.setUsername("mickey");
        userView.setGroup("cartoon");
        userViews.add(userView);

    }

    public List<UserView> getUserViews() {
        return userViews;
    }

    public void setUserViews(List<UserView> userViews) {
        this.userViews = userViews;
    }

    
}